Added Unit tests for AddressbookController and refactored towards better testability.