Fail on unit test failures and correct pylint violation