Add tests to ensure EXTEND_PROTOYPES is honored.
Merge pull request #3678 from rjackson/fix_prototype_assertions

Add tests to ensure EXTEND_PROTOYPES is honored.