edited functional_tests.py