write the test scripts