Port unit tests to ClojureScript for issue #4