Fix test04 print bug
Change job state on_bgfg()