The lesson to learn is that you should just study everything just in case. That's what I do, and it's what everyone should do. Teachers aren't infallible - they could easily forget something they put in a test, and they can always make last minute changes. In future, just don't rely on anyone...