Adding test for average