making unit tests safe for php<5.4