Added testing for getOriginalIndex method