tests for match order functionality