Add some tests for foreground/background srun execution