tests for jobs get and refactored