Refactor existing job_spec tests

They were still using the old NewSpec function that was expecting
arguments in the form they would be delivered from goworker.
Additionally, NewSpec wasn't actually being used in the code, just the
tests.  This all seemed quite silly, so I fixed it.
[TRIVIAL] rearrange test-related function