Added QueryAccess tests.