implemented superagent for rest api testing.