Client state tests