Write tests expecting raising of error(s) on invalid inputs