fix Pubnub lib & unit tests