Added unittest to functional_test.py