releases can/should change commitish

Extracted some test helpers for generating repository data - can probably be refined further but It Does The Job.