I improved the tests to make them easier to read and understand. 

Your comment about transparent and simple mocking is valid, but it would require to refactor the code of the modules further, e.g. introduce objects 'target' and 'service' and make the yast module instances work on them. And in regard to the complexity of the commands I'm not sure if this would bring the expected result.