test for self-calling inner functions