Updated test for writer
Moved costant from writer_test to writer
add const