Self test script