Add tests for contacts feature