Add integration tests for secondary indexes