Builds test script in test.py