added tests for authentication