add some proxy tests and remove debug code