Fixed some minor errors:

* Run _all_ tests when using setup.py (which travis uses)
* Get the user mode from the correct place in app.user_name
* Use 'is', not '==' when checking the class in pytest_runtest_makereport()