Fix some bugs in HasCoordinates
Add some quick tests