Fix Jenkins tests

(I hope ...)

Add flake8 check on test files (and correct files)