support the commend 'R'

Also refactoring: introduce m_index to link the facing, and made test name to reflect the intents.