Rotation fixed, added test case