Added tests for contact type
Refactored contact display string
Added contact presence offline test
Added contact tests