Fix test case to be portable to different architectures.