tests: fix the tests that report errors now stderr output is checked as well