Fix the issue with testRotation unit test