Only tests Agent.js