NASDAQ gains ahead of big tech testimony