Add tests for #duration and #remaining.