ticket:1 Added tests
Implemented tests
Merge branch 't1_contacts'