Adding tests for rotations, and cleaning up testing code.