unit test Bits class