Rewrite the rotation tests

A rewrite of the rotation tests.