Wrote some tests for authentication.