Prevent indexing in test env.

Avoid to use indexing in test environment