Test Type of Connection

changed script for check connection type instead -debug