make gmt CnView die if the inputs are invalid
remove unwanted test