add background/foreground listener for EffectSprite/Effect framework test case