Adding unit test for the proxy_stack functionality