Changed application initialization and added mock providers for Unit testing. This solves issue #256