Fixed a bug of TestScene that it calls onEnter two times when it uses transition

Fixed a bug of TestScene that it calls onEnter two times when it uses transition