Standardizes record querying in ImportItemsTest.