tests for errors and warnings