test for issue where entities modified on server are being saved as new entities, which causes duplicate entity error