fix the job_type parsing strategy

This patch changes the way the job type is retrieved and saved. The basic logic is:
- try to retrieve the job_type from the test name.
- if not found, create a new job type with job group null, symbol=? and name=test name.