Add tests
Also check for jobnum
Merge pull request #708 from ZyX-I/fix-finish_args-typo

Fix finish args typo