Fix typo in job parsing.

Also update test to make it test more cases.