Unit tests for contact retrieval.