Fix tests: No dangling annotations in stubs