Added tests for match.