Fixed testPatch in EntityTest

Change-Id: I19ba0ad7e3dd0822b4cd749503f97227ad4f62ac