Configure logging and add possibility to view debug messages in test.py