add test script and compiling script