Fix unit-tests and make pubnubTest scheme running.