Follow new error contract on tests.