Fix process exit code on test fail (for Travis-CI).