Update main function in tests.py