Test case for abstract class (currently not working well)