For byte mode for writing of structures.
More robust unittests for smartio.