fixed the test scripts to match the newer API