Tests & implementation for polar to cartesian conversion