testing promises template