On the structure of symmetric sample testing: A distribution-free approach