Added a secure manager.

Added unit tests to providers.