fix: Syntax error in generated FactoryMachine when method throws several exception (fixes #66)

add a test and actually fix the problem