Refactor Test::Quattor and add unittests

Why do you have to escape the profile name itself?

I see that later down you unescape it...