fixes so all test pass php 5.3 notice errors