test.pl now returns proper status when some of the tests fails