Remove unused functions and add more test coverage

it seems that self._info_type is not used in other places.