Test if a bit is set on a byte