Forgot to remove test code

Forgot to remove test code for generating error dialogs.