test_match() function works