Merge pull request #5639 from leoetlino/unit-test-profile UnitTests: Use a temporary profile directory