Use char(1) for bit
Fix tests