Add basic widget.js tests