Changes unit tests asserts to UnitTest methods.

So that evaluated variables are printed on fail.