unit tests for Coordinate