Add unit tests for the new authentication methods.
This required adding a fake wordpress load page and changing the mock database so it can be told to throw exceptions.