Added test framework for legacy VIZ_DATA_OUTPUT.

Also added a first test case which uses this test.
Streamline code and added additional viz tests.
Added invalid parser tests.