They're two types of variables, one being the responding the other being the controlled.
1-The controlled would be the light since the scientist would manipulate how much light the earthworm is given.
2- The responding would be the earthworm activity since it is reacting to the amount of light on it.
Well quiet naturally both animal and human testing are both very controversial and involve great deal of ethics.