On Sample-Based Testers