added tests and recipe for custom exception rendering