add unit test on method AddEntity in EntityController