Added unit tests for coordinates and updated calculations to include
negative coordinates