Add a test case for match regex