Fix minor issues that can't allow to execute test scripts.