added passing test for index