test bit math