Measures task time, adds tests