using length matcher to have more helpful error messages
add test for priority values