My friends Corolla had the same codes come up. I've been researching it to death. Someone suggested checking the air hose and sensor that are attached to the air filter box. Sure enough the sensor popped out, I pushed it back in and the engine light went off. It seems when the air filter gets changed, you open the box, one of these two can pop off. Simple fix thank goodness! Although we haven't done another emissions test hasn't been done yet I'm confident this was it.