Add test for core/bitarithm.h