Make last indexes test-friendly

Add test to test for index reset and make sure the app passes