moving nik's test_writer to import/random_stream, and deleted test_reader