Fixed test for RichWPS-endpoint detection.
Fixed RichWPS local/remote detection.