Unit tests for Matching class