improve testing scripts