test: fix leak detection for non-enumerables

- Non-Enumerable global leaks are now detected
- Check by key name not by reference