adding wait(selector) test and clojure fix, fixes #39