add interop tests
fix stupid typo

also catch two potential logic errors
change stream to return header block as array