Add streamReadToEnd test, fixed bug with register preservation