Fix attributes() for testbot tests on php 5.3.x