Make some assertions in debug mode.