Add test for comparing impl method type with trait bounds

closes #2687