Added clean up of Text objects created during test.