test function of bit