Fix the test <ruby> element not being removed.