test hoisted functions too