[no ticket] added exit error code (number of failed tests)