Add missing error messages for tests