Fixes tests capturing local objects by reference in async callbacks.
Fixes tests capturing local objects by reference in async callbacks.

Change-Id: I8e8f3038bd2dd91bb88b5e98b23851f908042d46
Reviewed-on: http://gerrit.aldebaran.lan/85063
Reviewed-by: jmonnon <8898eaf233516e520f996a244ca8a12d20f948b1@aldebaran.com>
Reviewed-by: jlamotte <70353e7b0c7d18b7fc75605daf0ccba69fcd3222@aldebaran.com>
Tested-by: jlamotte <70353e7b0c7d18b7fc75605daf0ccba69fcd3222@aldebaran.com>
Reviewed-by: vincent.palancher <f8ff75e1c61314c499fafa8de0d9e004e87e66b0@external.softbankrobotics.com>

aldebaran/libqi,aldebaran/libqi,aldebaran/libqi