fix flakes and pep8 errors
Merge pull request #100 from pkit/tests_fixes

fix flakes and pep8 errors