PEP8 fixes for tests.py
Attempt at patching the get_page_text bug identified by @aboutaaron in #94. Also added a unittest to make sure it's working in the future.