Unit tests for job