test that `$debugger->currentQuery` is equal to `$query`