update the self-test script