fixed tearDown function

using Future.wait() now