added some tests for Entity