Mock getCurrentPosition of the Geolocation API