Test for building index
Check for env to test