test for connecting to location