New exception test for ViewportQuad
various code cleanup items