[Fixed bug in reverse mapping trie traversal]
[Added reverse mapping test cases]