Wagner testifies he acted on behalf of clients in search war