adds tests and null pointer fixes to location/coord interpretation