add statement indexing unit test