Added code to test morse_socket