fix bug in Coordinate.copy(), add test case