Fixed bug in TextView. Added test case for TextView class.