test: add a test for creating forward index