bug fix on test scripts >_>