average formula added to test case