Fixed issue causing tests to break on php 5.5