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