Learning rotation is working amazingly in test code

Learning rotation is working amazingly in test code. Now to check with
regular learning code.