Data sending fixes and a new test script