change test connection method to setactive()