changes for extracting error object form http response and passing on with PubnubError Object
fixing unit tests