added acking and fixed PubSub test