Fix triggered job test to take credentials into consideration