Maybe I don't understand the problem.

I don't think a test should create a view - it should demonstrate (via mocks) what's expected to happen and/or that a known bad query structure isn't executed.