Added tests for contact matching.