bit writing tests