test_view: invoke view directly instead of using the test client