Fixed coverage that was only achieved from doctests