extend our functional test
refactored checking for an element in table