This commit updates the unit tests to work with the current code and adds in tests for the auth and token plugin functionality.