Correct exit codes for failed tests, Makefile

This is done to allow usage of pre-commit git hook.

* Makefile has 2 functions - test and clean.