Testing coverage extended, object orientation expanded in thermoclient.rb