testFunction() and newFunction() args refactored