Fixed build script to fail on failed unit tests