I think this code could moved to function:

```javascript
function get(path, callback) {
  return agent.get({
    host: 'localhost',
    port: common.PORT,
    path: path
  }, callback);
}
```