created widget model and basic tests