fix destination bug, mocha tests passing