added spec on argument capturing