add check if tests fail