correct working record creation and overwrite logic. tested with test-kitchen suite