Added tests and fixes for complex.clj