Testing invalid argument exception.