Fixed LatencyTest, added sleep to publisher to allow subscriber to remove its elements