NXDRIVE-107: Fix the test to avoid query