testing promises with updates