Fix TypeError when running Phoenix's test suite runtests.py