bab add avg fail tests to API stats