Made several unit tests. Refactored enum names. Fixed a JobInfo constructor.