Testing noncontextuality inequalities that are building blocks of quantum correlations