Add viewer tests.

No batch tests for now.