Fix wrong assertions