Remove pragma pack, not needed here, prevent crashs, improve test code