resolving function()[] issue and reducing to one testmethod