Updated logic which compares job name with test name