Tests: use variable to clone

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>