Updated tests to prevent test failures due to the PHP serialization BC bug.