unit-tests: Make test for bio_writer_t more portable