Move the class attributes inside InstanceMethods for testing. [#77432872]