Check for instance of view in assertViewHas. Closes #1011