Fix test compatibility with php 5.3

Change-Id: Ic5c574b85f205e7fba500a6101c5559b7b2ed3a2