add test with a 1MB generated file
fallback to buffer for stream until we can deal properly with bitpointer