public api is in core.clj now
added tests