Entity fixed test case 0 bug