adding sorting options and tests for their methods