replaced need for assertthat