added magic test script