Add tests for user-defined exceptions in blueprints