adding tests for new contact lib functions