Hum,
Technically, the T2 test was only a failure if they didn't learn from their mistakes.
This is assuming that they didn't actually blow it up themselves.
But of course, politically it was a success. China will put a lot of pressure on the US, to resume diplomatic talks with the NK government, (China doesn't want an arms race in their backyard, IMHO).
See this thread