Added checks and tests for .priority()