Added tests for rotate()