metric.BitCount and tests