Test for errors and leaked stack traces. In development the full stack trace should be shown. In production the stack trace should be hidden from users and replaced with a generic error statement such as "The server has encountered an error" while the full stack trace is logged on the backend.