Updating and deleting entities + tests