Some ordering.
Added checks for CheckPriority.
Extended tests for CheckPriority.