fix karma test with geolocation