Fixed #1933 modify renderMode for Tests