npm test testing on phantom and node.