made binary number test for file.

unfixed bug in binary number test on c random.