Refactor to let unit_tests/Makefile more compact
Stop to running unit test once there are failures