now it can pass the test.

caution: test case '-1' of short, int and long are special.
It is same bit pattern if endian is changed.