junit works for base class