Add TestRotate test case