Added tests, refactored the class phonebook (non-command prompt related code) to an external file