Fix test that fails under PERL_CORE since 5fb6a8d0c