added mean_test to fvar/matrix