Tests that expanding elements recursively works.