More functions and unit tests for both clj/cljs