added device connection test