ENH: Use modular testing functions.
COMP: Use module declspec export definitions.