Fixed text function in test.