many test scripts fixes

many fixes