reimplemented some file extension tests in clojure