Test inside class object