removing deprecation warnings - converted calls from #stub! to #stub