test and refactor job class
Merge pull request #7 from dadeg/job_tests

test and refactor job class