Added test for conditional function definition
Added tests for some adjacent cases