test bytes generation simplification