Fixed tests and renamed getRecord(s) to asArray