test: add tests for sorting requirements