Add test_index and call from travis