Fix tests and add some more for the other rotate functions.