fix typo in priority comparison
add tests for item related dialogs