fix test failures on big-endian systems
Merge pull request #13 from cjwatson/big-endian

fix test failures on big-endian systems