Added method Group.hasEntity.

Exposed value of text entity through a public property.
Added tests.