Fixed some issues with superagent in candidate tests.