Fixed the abstraction of CommonService object and configured the different configuration for environment.
Added controller testing scenarios.