Tests for MockedAuthenticationProvider