Functional test refactored to check for text in table