Some refactorings and UI tests for contact lists