FIx Register test on php 5.4