Adding JS unit test for the rave.api.rest.saveWidgetPreferences function. https://issues.apache.org/jira/browse/RAVE-27