print error, tests