add tests for order and partition helpers