Testing using pointer to function-specific data structure