Added average contribution by level and many tests