add tests for nested jobs