Add test to support single file with function declaration