changes to functional_tests.py