Added Test for mean function.