Refactored
Test for lambda taking parameters