refactoring telnet bee
added test cases for telnet bee