Fix resolve length tests

When a resolve call finds no records, the results will be `undefined` rather than an empty list.