Added rotation and box testing.