Revert "correct error code when tests fail"

This reverts commit 14d393be81b40263b3eaf8ac18aa9ab9117a65a9.