Added algorithm.rotate test