added several tests and test suite for sorts