Bit writing tests