tests & implementation of setPosition for cartesian