fixed format, added a test in SAMFileWriterFactoryTest