ticket:14 added tests for widget