Fix the saving of trial in a specific folder

Reviewer: Chezka Arevalo (post commit)

Issue: GCP-9528