Kernel-Based Nonparametric Tests For Shape Constraints