Add test for service generation.
Refactor generator to add a method to create an assembly containing the
generated classes.