Tests for #614

Tests for #614 

Tests pass on bigendian machine, as well as the usual intel machines.