Add tearDown method to Promise

A method that allow to pass a unique callback that
will be notified when the whole promise chain have finished
Fix broken tests