Fix content views handling in system tests

The global content view "$TEST_VIEW" was incorrectly used in various places.