fix - tests failign inside promise handlers were not resetting the expectations