add flake8 to tests