You correctly used the d.getTestCallback() on the last sequence() call, but all the other ones should be wrapped in g.getTestErrback(), in case they fail.