Add what's returned to preferred_extension docstring
Add tests for grounded_extension and preferred_extension