It looks like these assertions are being used to check that the test is set up properly, rather than having anything to do with the program behaviour that is to be tested. If this is the case, I think a test error would be more appropriate than a test failure, since failure implies that the test ran properly but the program behaved incorrectly. An error can be generated by throwing an exception with the given message.