Add tests for the RecordsWriterFactory class. Make sure the appropriate writer class is returned for each format.