Modified test to include a function with a default arg