Write raw bytes for binary test