model tests bears bugfix for php5.3 branch