tests: use union to let compiler know about buffer aliasing.