Factor out some common test logic