Finished up changes to authentication controller
Add some tests for non-trivial methods of new Authentication objects.