Add better error message in functional_test.py
Add better way to get test message