Testing setRecord