ticket:13 fix coverage and flake8 errors