Unit testing and utils refinements

* More unit tests against utils module
* Minor modifications to utils module for formatting.
* Remove case which could not be reached inside utils module.
Raise IPC check even higher to resolve failing tests in Jenkins.
More unit tests. Many, many more.