This tests all the methods in TextComponent class.