Fix test for invalid view input