making unit tests script fail on error