No, there isn't a test for pica your doctor will diagnose this condition based on history and several other factors.
You should be honest with your doctor about the non-food items you've eaten, this will help then develop an accurate diagnosis.
- it may be hard for them to determine if you have pica if you dont tell them what you've been eating, so try not to be embarrassed about while speaking to a doctor.