Fix test to work for php 5.3