There are some tests under the library folder. However the tests are indeed not well tested on big-endian machines. (Some tests need to be commented before testing, depending which character sets are available for `iconv')