Removed main from abstract classes

Abstract classes do not need to be tested, so I have removed the main
method from these.