Fixing tests so that they properly check obj serialization.