updated writer interface and moved it to src/test/java