Add tests for match endpoint