updated functional_tests.py to unittest code on pages 16-17; ran it and it works as expected.