fix error output in test