more tests and fixes for coordinates
Many more tests for coordinate math (and some fixes)