Add test for method exists checking