Adds tests for resolve_priority