Make the self-test script importable