Added tests for polar function