Adding mock-socket library to get tests to pass in phantomJS