fix malfunction of stopwatch unit test and reduce testing time
hide stdout when testing