Add unit tests for matcher (match)