Add proxy tests. Thanks @melo