For this to pass in all browsers, it needs to be:

can.scope( can.$("test-comp") ).attr("attr1",1)