JS tests for restoreDefaultId and setUserId. Modified test for updateConfigUrl.