Testing class inheritance