Mocks only the methods, not the whole geolocation object. Works now on Firefox.