Updated person::$warnings to test the object is created