Factory improvements

Added methods for creating charms, services and units to the testing factory.
Don't we want the default unit to be on a machine?