add regression testing for #5166 , #5197 and #5241
test is actually related to Form instead of Fieldset class
Merge pull request #5274
Merge pull request #5274 in master