issue with promises in updateTag function
unit testing