ip: Add unit test for new api for matcher