Fix test case for createRecord