Added gulp & test deps
Added mocha tests + fixed few errors