Influence Functions for Testing