Simple test to see what function gets initialised when functions are declared in branches