Fix some tests to be compatible with `warn_missing_spec`