fixed contacts, fixed rest test mocking, added contacts unit tests