Adds tests for record toArrayForSave.