Add test for ROOT-5467.