Tests now only pass if:  0.5 * threshold < time_taken < threshold
Tidy up logging