Fix generated tests and remove view tests