added  test case to restCallWidgetSpecs.js