fix tests on node v0.8+

Run travis on all versions of node, fix a difference in `buffer.slice()` between versions