Adds support for warnings (non-fatal errors) to test unit