Move test code out of xxmodule and into _testcapimodule.c where it belongs.

Will backport.
2 files changed