Limit previous testgroup run query to last 1000 jobs