revise view query tests