Adding test for order of matching