testing widgets as promise