fixed consumer and more tests
flake8