fixing tests that was broken in php version 5.3 at ModelTest