Add tests and makes the password policy a provider so the configuration can be loaded to memory on startup.