Add (currently failing) test for https://github.com/JuliaLang/julia/issues/8971