Fix exit codes in `lein check` and `lein test`

related to issue https://github.com/technomancy/leiningen/issues/1302