fixed TextComponent type class to extends Component
added so basic utility methods for testing