unit test for contact model