Hypotesis testing based on Weisfeiler-Lehman graph kernel