Refactored test folder creation into its own method.
Added pep8-compliant lines between top level methods