modified record.test.js