how does a chemical stress test work