Take care of identation.
Calculate duration for tests.