How to identify of meso stereocenters correctly ?

I am trying to identify molecules with meso sterocenters in a list of compounds. In order to do so I tried the Pipeline Pilot function AtomHasMesoStereo(#atom). Unfortunately the function returns incorrect answers even for known meso molecules such as R,S tartaric acid (isomeric smile: O[C@H]([C@H](O)C(=O)O)C(=O)O)). The chiral R,R-tartaric acid (O[C@H]([C@@H](O)C(=O)O)C(=O)O) however is marked as meso compound. How can I get this to work correctly ?