Fix tests related to client state(presence feature).