Use Map to track injected instances under cpp as WeakMap is not implemented.

- enabled cpp tests
- upgraded