test for abstract class