test => re rotateTo if last less than which
test => re rotateTo if last larger than which & refactoring
Merge branch 'rotation' into master
add test into all-tests.html