Fix views tests