#248: change tests
#248: add CustomWriterFactory, add, change tests