added test for GravityField and BUG FIX