Add tests for phonebook example