add misc/get_bit with test