Add support for errors and warnings in the unit test protocol