add background/foreground listener for Effectsprite3d/Effect3d test case