Test some bit manipulation