testing: Adding some convenience functions to testing utils module, adding a couple unit tests for the init command