tests, and better use of memory so less tempfiles are created

...ads and more memory when running samtools sort (require samtools 0.1.19+)