tests and refactored core/API/Proxy.php