Added a tastable subclass of client as well as adjusted Client to be testable for global php variables. Stopped xiti var from being added when empty, made sure to always include version and added tests.