Fix issue with deleting test database when --testing between client and daemon
Update plugin registration in doc example