Factor out scope-related GetFragment tests