Add failing test for #2796 bound methods in constructor.