fix bool insert and add test