fix index name
add basic test case