Add test for conditional function declaration