test case improvement, removed slow running test in AggregatesTableTestBase and added test coverage in EntityTable