Corrected abstract class declaration

And added a test