update entity and tests