added logging to test.py.