Made error messages during tests more consistent.