Gold tests $2,400 as traders weigh US-Iran deal progress