set default scope of event callback to current class scope added also te...

3499e119aa49cfd87aa0f846630a44e479a8525c, make default event callback scope to current class instance, also added some test.