more robot refactoring and rotation tests