fix flake8 warnings
fix test - send messages via sender