Fixes compiler errors on force gravity test