diff --git a/test/phpunit/CategorieTest.php b/test/phpunit/CategorieTest.php
index 895fec50781c87210e13166fa41da368986da986..de6c25455dcd5dd47b10552f659fda4ce947375e 100755
--- a/test/phpunit/CategorieTest.php
+++ b/test/phpunit/CategorieTest.php
@@ -136,8 +136,8 @@ class CategorieTest extends PHPUnit_Framework_TestCase
     	$this->assertGreaterThan(0, $result);
     	
     	// Save and unset $this->id for good check test
-    	$saveid = $localobject->id;
-    	unset($localobject->id);
+    	$saveid = (int) $localobject->id;
+    	$localobject->id = 0;
     	
     	// We check if exist
     	$result=$localobject->already_exists();
@@ -151,6 +151,7 @@ class CategorieTest extends PHPUnit_Framework_TestCase
     	
     	// Restore $this->id with save value
     	$localobject->id = $saveid;
+    	print __METHOD__." saveid=".$localobject->id."\n";
 
 
     	return $result;