Fix the export of AnalysisDataService::addOrReplace

Add an explict test for the method.
Refs #7867
Merge remote-tracking branch 'origin/bugfix/7867_python_mtd_addorreplace'