Fixed socket acceptance test based on reflection.