Add tests for ViewVarsTrait.
Remove copy + paste tests.

These tests are redundant as there are tests for the trait now.