Cleanup code style for Duration tests