Updated the view tests to use patch