Testing functional inequalities