The Revealed Preference Approach to Collective Consumption Behavior: Nonparametric Testing and Sharing Rule Recovery