added test for scan index with default value for numRecords