Add tests for vag encoding itself.

Just spot checking to keep the output of the test not-crazy.