Add test for attributes in replaced blocks.

This has never failed, but it’s an important enough feature.