fix an issue with connection tests regarding passing a non-variable by reference to 'reset' function