Added ability to pass arguments on resolving closures
Added test for closure resolution with arguments