make assert.end behave like a node callback