Added new constructor for test helper surroundWithClassMain to enable
adding "throws" declaration to the class