Added a test to verify that 'cloneRecord' will fail when there are already pending changes.