Factory improvements

Added methods for creating charms, services and units to the testing factory.
then you can turn this into TestMakeMachineNil