Research methods

A study compares two teaching methods, but students using Method A are tested in the morning and students using Method B are tested in the evening. Why is testing time a potential problem for interpreting the teaching-method independent variable?