Partials and wrap files in function scope.
Fix test.