ModeDAO, PermissionDAO simple tests implemented.