new - test for streaming decode
fix - infinite loop
improve - add equals and hash code