Turns out, the cljs version creates newlines at the end of a string. This was not considered in the test and thus resulted in failure.