Sanity-check JSON priority mapping where applicable + tests