test: fix ignore warning when expect_warning_str