Arm test

fix some part of test code to pass make check on ARM Android