Add a test for the NodeStore#scanRecords() method