/**
  * Turns on/off the test mode in API
  * @param bool $on
  */
 public static function setTest($on)
 {
     self::$test = $on;
 }