saving partnerid and testmode to class variables.