Note, this is the error I'm getting: 
```
x on error

  TypeError: argument at index 1 is not a function: [object Object] failure

  Traceback (most recent call first):
    callCallback (/Users/brian/dev/CSOL-site/node_modules/sinon/lib/sinon/stub.js:132:23)
    Api.functionStub (/Users/brian/dev/CSOL-site/node_modules/sinon/lib/sinon/stub.js:170:21)
    Function.invoke (/Users/brian/dev/CSOL-site/node_modules/sinon/lib/sinon/spy.js:343:55)
    Function.invoke (/Users/brian/dev/CSOL-site/node_modules/sinon/lib/sinon/mock.js:224:32)
    Api.proxy (/Users/brian/dev/CSOL-site/node_modules/sinon/lib/sinon/spy.js:272:26)
    Object.invokeMethod (/Users/brian/dev/CSOL-site/node_modules/sinon/lib/sinon/mock.js:132:48)
    Api.get (/Users/brian/dev/CSOL-site/node_modules/sinon/lib/sinon/mock.js:78:43)
    Api.getPrograms (/Users/brian/dev/CSOL-site/openbadger.js:227:12)
    /Users/brian/dev/CSOL-site/api.js:173:5
```
(for onerror, ondata and paginates)