Refactoring for reducing complexity
Added unit tests for addProvNEntrties