added timeout to TestFileSink