Testing your payload can be done in two ways. One way is to test it in a lab environment with a replica of the target's system; however, this is not always possible as there might be licensing requirements for the antivirus program that your client is using.
The other option you have is to submit the sample of the payload to online services such as VirusTotal.