Fix the tests according to the new View api.