Refactored ContactsListView and written Unit Test for it