test that indexes are created