flake8, found/fixed some tests