Logic and Testcases for Setting up and testing the telephone