Added writer_test