Test case for calling inherited method from the constructor