Adding test for calculate_total_mean