Adding more tests to cover different level of nested functions.