Unit test improvements for ObjectWriter.writeValues()