Added test for AdauthUser class.
Code formatting changes.