Tweak to protocol tests to aid backporting

Improve protocol test slightly to avoid NoSourceFile which is not backwards compatible with 2.9