Test inherits var class