added connect and disconnect to temp tests