Refactor Test::Quattor and add unittests

What's the point of `here` besides more typing?