added a test to drive out the using of entity