More general test script.