Add tests
Also check for jobnum