Rewrite tests

The tests were referencing tools.analyzer and would fail when running
under mranderson as that library couldn't be found on the classpath.
I've rewritten the tests to rely on standard clojure namespaces instead.