Widget: add some tests for working with Widget