Test for getCurrentLocation validity
Updated version