Added unit tests for AgnLocusStream class, but there are memory management issues