Improve upload failure stats tests.