update unit test for match algorithm