fix index unit test