terminate test-algorythm main with 1 if test failed