Added two more tests for the location
Fixed a bug in the location object