check_gradient should only check gradients that are declared for a component