not break on empty insert, fix test