added tests for cleanContacts and generateMetadata
tests for validateContact