The documentation for assert mentions that you should useassert.New(t) when doing more than one assertion, so this patch
updates all our unit tests to this format. Additionally, a helper method
was updated to accept testing.T and mark itself as a helper so any
crash or error in it will be reported in the correct test.