modified to support full task JSONs
removed adapter, refactored tests to use sinon-chai