Added test cases for TwoFactorProviderRegistry
Fixed missing use statement
Fixed code formatting
Added test cases for TrustedFilter