Added test for leading attributes and spread in closing element