add scripts for testing index examples