"The existence of a law is one thing, its merits or demerits is are another thing. Whether a law be, is one inquiry; whether it ought to be o whether it agree with a given or assumed test, is another and a distinct inquiry."