Adding tests for max_categories user_metadata