Add test for correct proxying of methods