Refactor class param handling
Fix repo spec test for newer apt gem versions
Add client spec test