wrote the tests for the core where we restore the current rotation