Fix PEP8 issues
Fix typo in tests
Add tests for results.py