Fixed edge case for elapsed_time of a test run