Tests for entity id generation added.