test.py: remove dependency on logging and unittest modules.