add tests on index