More reg unit tests for dao errors.