Merge "fix random test_task unittest fail due to os.environ mock"