ensure inv get deleted if update fails; tests to ensure type change is denied