Refine tests

- Add create a job with a single task
- Add random generate when task is created
- Some misc refine