unit test: writer: Fix tests via ugly workaround...