Use priority Name instead of id.
Add a test for new redmine behavior and fix another bug.