Remove delays in test_connect_rid and destroy/recreate context between tests