Fixed a bug in test_compute_gmf