remove use of deprecated junit packages
explicitly flush transport before closing
use System.nanoTime