Add block transform test that tests against older rotation code.

Also fixes the rotations for some blocks.