fix tests broken by change in error format