Test assertions on invalid expressions