Assertions throw only in debug