OZP-801: add integration tests for /prefs/widget
- fix bug introduced because of previous merge