Inject mock application object to pass unit tests