updated tests and made sure they were pep8 compliant