Refactor Test::Quattor and add unittests

Be short in locals, and verbose on globals. :wink: