adds an assertion to a test