[TEST] Added tests for JobPattern