Hi Xenia,
I think there may be complications at some point if a user has both a Learner & Trainer role in a course, it isn't good practise. Ideally if someone has to be a trainer & a learner in a course then they should have separate (ie two) accounts. The role switch is for testing, it may not be 100% accurate.
cheers,
George.