pep8 fixes
bugfix: prevent UnboundNameError if user does not exist in database.
add coverage for pocs.utils, particular the enrollment state class and enrollment email functionality