Tests for bit_ops