pep8 a comment
tests for the main function.
clean up tempdir in test