Better testing and showcase of how to use the api for non Ui created
widgets