Remove pointless double-lock and improve module branch coverage
Add tests in kernel-impl
Add test for build message exception
Remove unused method.
Add result transform tests
Remove stale helper method and dysfunctional test