fixing test that was broken in php 5.3 version