Added test with mocking function

Added test with mocking function (temporary dynamic redefinition
http://clojuredocs.org/clojure.core/with-redefs)