Contacts class and tests