add tests for typed sort parameters