change current scope to serial or parrllel object
and add a new test about 'on end' event to parrllel