tests with mocha; fix broken query selectors