function to test index.py