Fixing issue with rotation doctests formatting