Test reference generation