Test index/reverse index
Add test for reset preserving prompt