Factor out common project test helpers