changed Test to class inheritance