tests: Fixes an access violation on Windows triggered by a bug in VS2013.
tests: Fixes an access violation on Windows triggered by a bug in VS2013.

This patch work around the issue by doing the same thing written
a different way.

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

aldebaran/libqi,aldebaran/libqi,aldebaran/libqi