unit tests of cmd_bit