make it run in testling (locally)
handle whitespace in class/id
simplify test