Test framework updates

* Auth system testing
* Minor spelling changes
* Optimize import statements
* Fix failing Ubuntu Jenkins tests. (Thanks @terminalmage!)