Fixed failing Agent and Promise tests.