Fix views being run against jquery.
Merge pull request #1212 from fmoloney/fixViewTests

Fix views being run against jquery.