Updated generator test templates.
Added rudimentary 404 handling (using appEvent).