Client unittest