fixed setdefaulttensor in test bug