change test dependencies to node modules, not cdn

to make the phantom test work much better.