-fix to incorrect averaging in one of the tests