update entity system
fix unit test bug