Improve class proxy test level

- Add tests for equality
- Use ClassLoaders.inferDefault to find class loader