complete logic to test job execution

IP identification is not correct now