test 7 part 4 passed. check if symbol already defined added to set