implemented getLocation (test only) ref #1