Testing the location functions