Restructured test running and fixed issue with delete test not resetting connection state