Implemented rotations, added some tests