Changing return value to 1 on error on tests