fixed bug where —test would submit all jobs instead of only 5